<?php

namespace App\Trip\Plane\Requests;

trait PageRequest
{
    public function page(): int
    {
        return ((int)request()->input('page', 1)) ?: 1;
    }

    public function page_size(): int
    {
        return ((int)request()->input('page_size', 15)) ?: 1;
    }
}